package com.itbaizhan.shopping_admin_service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itbaizhan.shopping_common.pojo.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author spf
 * @date 2023/12/14
 * @time 10:58
 */

// 角色服务持久层
@Mapper
public interface RoleMapper extends BaseMapper<Role> {
    void deletePermissionToRole(Long id);

    void deleteRoleToAllAdmin(Long id);

    Role findById(Long id);

    void addPermissionToRole(@Param("rid") Long rid, @Param("pid") Long pid);
}
